const fetch = require('dva').fetch;

export function getUser(params) {
    let response = fetch('http://localhost:8092/user/login', {
        method: 'POST',
        headers: {
            Accept: 'application/json',
            'Content-Type': 'application/json;charset=UTF-8',
        },
        body: JSON.stringify(params),
    });
    return response;
}
